package com.hhkj.study.admin.resource.model.req;

import com.hhkj.study.common.model.res.AliyunOssRes;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author luowu
 * @Date 2024/9/20 涵 14:22:16
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ResourceDocBatchImportReq extends ResourceCourseDocReq {

    /**
     * 资料列表
     */
    @NotEmpty(message = "资料不能为空")
    private List<AliyunOssRes> docList;

    @NotNull(message = "课程类型不能为空")
    @Override
    public Long getCourseType() {
        return super.getCourseType();
    }

    @NotNull(message = "资料类型不能为空")
    @Override
    public Long getType() {
        return super.getType();
    }
}
